using System;
using System.Collections.Generic;
using System.Text;

using AIFSDataAccessLayer.Utilities;

namespace AIFSContentManagementSystem.DomainObjects.Mapper
{
    public class ArticleFragmentMapper : DtoMapper<ArticleFragment>
    {
        protected override void Map(System.Data.DataRow drEntity, ArticleFragment dto)
        {
            dto.ArticleFragmentId = DataTableUtil.ToIntType(drEntity, "ARTICLE_FRAGMENT_ID");
            dto.ArticleId = DataTableUtil.ToIntType(drEntity, "ARTICLE_ID");
            dto.FragmentId = DataTableUtil.ToIntType(drEntity, "FRAGMENT_ID");            
        }
    }
}
